package priv.ln.project.domain;

/**
 * ClassName: Architect
 * Package: priv.ln.project.domain
 * Description:
 * 架构师类
 * @Author 辣辣
 * @Create 2024/7/17 17:33
 * @Version 1.0
 */
public class Architect extends Designer{
    private int stock;//公司奖励的股票数量

    public Architect() {
    }

    public Architect(int id, String name, int age, double salary, Equipment equipment, double bones, int stock) {
        super(id, name, age, salary, equipment, bones);
        this.stock = stock;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    @Override
    public String toString() {
        return super.getId() + "\t" + super.getName() + '\t' +
                super.getAge() + "\t" + super.getSalary() + '\t'
                + "架构师" + '\t' + super.getStatus() + '\t' + super.getBones()
                + '\t' + stock + '\t' + super.getEquipment().getDescription();
    }

    @Override
    public String getTeamDetails() {
        return super.getMemberId() + "/" +  super.getId() + "\t" + super.getName() + '\t' +
                super.getAge() + "\t" + super.getSalary() + '\t'
                + "架构师"  + '\t' + super.getBones() + '\t' + stock;
    }

}
